// DerivedDialog.cpp : implementation file
//

#include "stdafx.h"
#include "mfc_test3.h"
#include "DerivedDialog.h"


// CDerivedDialog dialog

IMPLEMENT_DYNAMIC(CDerivedDialog, CBaseDialog)

CDerivedDialog::CDerivedDialog(CWnd* pParent /*=NULL*/)
	: CBaseDialog(pParent)
{

}

CDerivedDialog::~CDerivedDialog()
{
}

void CDerivedDialog::DoDataExchange(CDataExchange* pDX)
{
	CBaseDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CDerivedDialog, CBaseDialog)
END_MESSAGE_MAP()


// CDerivedDialog message handlers

BOOL CDerivedDialog::OnInitDialog()
{
  CBaseDialog::OnInitDialog();

  m_conListCtrl.InsertColumn(0, _T("Name"), LVCFMT_LEFT, 130);

  // TODO:  Add extra initialization here
  SetTimer(1, 1000, NULL);

  return TRUE;  // return TRUE unless you set the focus to a control
  // EXCEPTION: OCX Property Pages should return FALSE
}

void CDerivedDialog::RunTimer()
{
  m_database.push_back(NULL);

  m_conListCtrl.SetItemCount(m_database.size());
}